package com.tanhua.dubbo.mappers;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tanhua.model.domain.Questionnaire;
import com.tanhua.model.domain.SoulQuestionOption;
import com.tanhua.model.vo.SoulVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface SoulMapper extends BaseMapper<Questionnaire> {

    List<SoulVo> findSoul();


    List<SoulQuestionOption> findOptions(@Param("page") Integer page,
                                         @Param("pageSize") Integer pageSize);

    Integer finidScore(@Param ("first")Integer first,@Param("last") Integer last,
                      @Param ("optionIds")List<Integer> optionIds);
}